<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./lib/vue.js"></script>
  </head>
  <body>
    <!-- View -->
    <div id="app">
      <!-- v-bind绑定数据：让我们的值是动态绑定的（不是写死的） -->
      <!-- <img v-bind:src="img_url" alt="" /> -->

      <!-- v-bind: 可以简写成 : -->
      <img :src="img_url" alt="" />
    </div>

    <script>
      //   ViewModel
      new Vue({
        el: '#app',
        data: {
          img_url:
            'https://img1.baidu.com/it/u=2236572226,1780107877&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=721'
        }
      })
    </script>
  </body>
</html>
